unixodbc: compile as gnu11
authorRosen Penev <[email protected]>
Fri, 1 Aug 2025 02:09:47 +0000 (19:09 -0700)
committerTianling Shen <[email protected]>
Mon, 11 Aug 2025 09:12:05 +0000 (17:12 +0800)
Fixes compilation with GCC15. Properly fixing this is too convoluted.

Signed-off-by: Rosen Penev <[email protected]>
libs/unixodbc/Makefile

index e862b190dd2a05b63630a64c31cafb65483328bf..3244bd4620afac460e0785ea1f4ea350fd68cc98 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=unixodbc
 PKG_VERSION:=2.3.12
-PKG_RELEASE:=3
+PKG_RELEASE:=4
 
 PKG_SOURCE:=unixODBC-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=http://www.unixodbc.org
@@ -143,6 +143,8 @@ $(call Package/unixodbc/Default/description)
 This package provides the PostgreSQL driver for ODBC.
 endef
 
+TARGET_CFLAGS += -std=gnu11
+
 define Build/InstallDev
        $(INSTALL_DIR) $(1)/usr/include
        $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/